<!DOCTYPE html>
<html>
<head>
  <title>登录斯兔权限系统</title>
  <meta charset="utf-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="../common/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../common/css/admin.css" media="all">
</head>
<body>
<div class="layui-form model-form" id="form-psw">
  <div class="layui-form-item">
    <label class="layui-form-label">原始密码:</label>
    <div class="layui-input-block">
      <input type="password" name="oldPassword" placeholder="请输入原始密码" class="layui-input"
          lay-verType="tips" lay-verify="required" required/>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">新密码:</label>
    <div class="layui-input-block">
      <input type="password" name="newPassword" placeholder="请输入新密码" class="layui-input"
          lay-verType="tips" lay-verify="required|psw" required/>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">确认密码:</label>
    <div class="layui-input-block">
      <input type="password" name="repeatPassword" placeholder="请再次输入新密码" class="layui-input"
          lay-verType="tips" lay-verify="required|repsw" required/>
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block text-right">
      <button class="layui-btn save" lay-filter="submit-psw" lay-submit>保存</button>
      <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
    </div>
  </div>
</div>
<script src="../common/plugins/jquery/jquery-1.11.2.min.js"></script>
<script src="../common/layui/layui.all.js"></script>
<script>
  layui.$(".save").click(function () {
      console.log(123);
      top.layui.layer.closeAll();
  })
</script>
</body>
</html>
